package com.hospital.post.schedule;


import com.hospital.post.service.PostService;
import com.xxl.job.core.handler.annotation.XxlJob;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class XxlSchedule
{
    @Autowired
    private PostService postService;

    @XxlJob("redisToMysql")
    public void redisToMysql() {
        postService.redisLikeToMysql();
    }
}
